<div ng-controller="BalanceCtrl" ng-init="addAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/balance/list">{{balance_activity_data.name?balance_activity_data.name:'充值活动'}}</a></li>
        <li class="active">
            {{!balance_activity_id ?"创建":"edit"|translate}}
        </li>
    </ul>
    <form name="Tradeform" class="sui-form form-horizontal" novalidate>
        <div class="control-group">
            <label class="control-label v-top">
                活动名称：
            </label>
            <div class="controls">
                <input id="name" type="text" name="name" ng-model="balance_activity_data.name" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                起始时间：
            </label>
            <div class="controls">
                <input id="start_time" ng-model="balance_activity_data.start_time" datetimepicker name="start_time" min-date="{{balance_activity_data.start_time}}" required>
                <span class="float_left" style="width:10px;">至</span>
                <input id="end_time" ng-model="balance_activity_data.end_time" datetimepicker name="end_time" min-date="{{balance_activity_data.start_time}}" required>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label v-top">
                充多少元：
            </label>
            <div class="controls">
                <input id="money" type="text" name="money" ng-model="balance_activity_data.money" /> 元
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top">
                送多少元：
            </label>
            <div class="controls">
                <input id="money_gift" type="text" name="money_gift" ng-model="balance_activity_data.money_gift" /> 元
            </div>
        </div>

        <div>
            <button id="balanceAdd" class="sui-btn btn-primary" ng-disabled="!balance_activity_data.money && !balance_activity_data.money_gift" ng-click="balanceAdd();">
                保存
            </button>
        </div>
    </form>
</div>